import service from '@/utils/request'
// @Tags StudentProfile
// @Summary 创建学生档案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.StudentProfile true "创建学生档案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /SP/createStudentProfile [post]
export const createStudentProfile = (data) => {
  return service({
    url: '/SP/createStudentProfile',
    method: 'post',
    data
  })
}

// @Tags StudentProfile
// @Summary 删除学生档案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.StudentProfile true "删除学生档案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /SP/deleteStudentProfile [delete]
export const deleteStudentProfile = (params) => {
  return service({
    url: '/SP/deleteStudentProfile',
    method: 'delete',
    params
  })
}

// @Tags StudentProfile
// @Summary 批量删除学生档案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除学生档案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /SP/deleteStudentProfile [delete]
export const deleteStudentProfileByIds = (params) => {
  return service({
    url: '/SP/deleteStudentProfileByIds',
    method: 'delete',
    params
  })
}

// @Tags StudentProfile
// @Summary 更新学生档案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.StudentProfile true "更新学生档案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /SP/updateStudentProfile [put]
export const updateStudentProfile = (data) => {
  return service({
    url: '/SP/updateStudentProfile',
    method: 'put',
    data
  })
}

// @Tags StudentProfile
// @Summary 用id查询学生档案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.StudentProfile true "用id查询学生档案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /SP/findStudentProfile [get]
export const findStudentProfile = (params) => {
  return service({
    url: '/SP/findStudentProfile',
    method: 'get',
    params
  })
}

// @Tags StudentProfile
// @Summary 分页获取学生档案列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取学生档案列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /SP/getStudentProfileList [get]
export const getStudentProfileList = (params) => {
  return service({
    url: '/SP/getStudentProfileList',
    method: 'get',
    params
  })
}

// @Tags StudentProfile
// @Summary 不需要鉴权的学生档案接口
// @Accept application/json
// @Produce application/json
// @Param data query exampleReq.StudentProfileSearch true "分页获取学生档案列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /SP/getStudentProfilePublic [get]
export const getStudentProfilePublic = () => {
  return service({
    url: '/SP/getStudentProfilePublic',
    method: 'get',
  })
}
